Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OTLP traces benchmark #34

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

lahsivjar
Copy link
Contributor

Fixes the OTLP traces benchmark to handle API key auth and custom headers.

@lahsivjar lahsivjar requested a review from a team August 31, 2023 11:33
@@ -125,6 +125,7 @@ func Benchmark10000AggregationGroups(b *testing.B, l *rate.Limiter) {
func newTracer(tb testing.TB) *apm.Tracer {
httpTransport, err := transport.NewHTTPTransport(transport.HTTPTransportOptions{
ServerURLs: []*url.URL{loadgencfg.Config.ServerURL},
APIKey: loadgencfg.Config.APIKey,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes APIKey auth for the apm-tracer based benchmarks but I haven't been able to find a way to add custom headers for these.

@lahsivjar lahsivjar merged commit ef8f020 into elastic:main Sep 4, 2023
2 checks passed
@lahsivjar lahsivjar deleted the fix-otlp-taces-bench branch September 4, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants